package casino;

import containers.*;

public abstract class Player {
	public Casino casino;
	private boolean going;
	public Hand hand;
	public Discard discard;
	public Deck deck;
	public boolean choosing;
	public boolean adding;
	public boolean duplicating;
	public boolean building;
	public boolean taking;
	
	public Player(Casino n){
		casino = n;
		going = false;
	}
	
	public void setHand(Hand n){
		hand = n;
	}
	
	public void setDiscard(Discard d){
		discard = d;
	}
	
	public void setDeck(Deck d){
		deck = d;
	}
	
	public boolean going(){
		return going;
	}
	
	public void takeTurn(){
		going = true;
		choosing = true;
		hand.add(deck.draw());
	}
	
	protected void endTurn(){
		going = false;
		casino.turnEnd(this);
	}
	
	public abstract void update();
}
